<?php
/**
 *   Run all the testcase found in the file
 *   which include the runner.
 */


if(!defined('QSTONE_DIR')){
    define('QSTONE_DIR',dirname(__FILE__));
}

function __autoload($class_name){
    $path = strtolower(str_replace("_","/",$class_name));
    $path = QSTONE_DIR.'/'.$path.".php";
    if(file_exists($path)){
        require_once($path);
    }
}

$global_suite = TLoader_Instance::get($argv[1])->getTest($argv[1]);
$global_suite->run(Reporter_Factory::getReporter());

?>
